There are two ways to create new lin in RichtTextBox control in C#, by using:
- RichTextBox.Text property
- RichtTextBox.AppendText method
RichTextBox.Text property
myRichTextBox.Text += Environment.NewLine + "New line goes here";
RichtTextBox.AppendText method
myRichTextBox.AppendText(Environment.NewLine + "New line goes here");
Related Articles
Comments